const CourseIndex = () => import(/* webpackChunkName: "CourseIndex" */ 'pages/course/list')
const CourseLayoutTopMenu = () => import(/* webpackChunkName: "CourseIndex" */ 'pages/course/edit/layout')
const CourseEditInfo = () => import(/* webpackChunkName: "CourseIndex" */ 'pages/course/edit/info')
const CourseLessonPeriod = () => import(/* webpackChunkName: "CourseIndex" */ 'pages/course/edit/lesson-period')
const CourseEditPeriod = () => import(/* webpackChunkName: "CourseIndex" */ 'pages/course/edit/lesson-period/edit')

const CourseTraineeIndex = () => import(/* webpackChunkName: "CourseIndex" */ 'pages/course/edit/trainee')
const CourseTraineeGroup = () => import(/* webpackChunkName: "CourseIndex" */ 'pages/course/edit/trainee/group-trainee')
const CourseTraineeExamine = () => import(/* webpackChunkName: "CourseIndex" */ 'pages/course/edit/trainee/examine')
const CourseTraineeImport = () => import(/* webpackChunkName: "CourseIndex" */ 'pages/course/edit/trainee/import-trainee')

const CourseLessonDataIndex = () => import(/* webpackChunkName: "CourseLessonDataIndex" */ 'pages/course/edit/lesson-data')
const CourseLessonDataRecord = () => import(/* webpackChunkName: "CourseLessonDataIndex" */ 'pages/course/edit/lesson-data/record')
const CourseLessonDataReport = () => import(/* webpackChunkName: "CourseLessonDataIndex" */ 'pages/course/edit/lesson-data/report')
const CourseLessonDataCourseStat = () => import(/* webpackChunkName: "CourseLessonDataIndex" */ 'pages/course/edit/lesson-data/course-stat')
const CourseLessonDataLessonStat = () => import(/* webpackChunkName: "CourseLessonDataIndex" */ 'pages/course/edit/lesson-data/lesson-stat')

export default [
  {
    path: '/curriculum/manager/list',
    name: 'curriculum.manager.list',
    component: CourseIndex,
    meta: {
      title: '课程列表',
      menuPath: '/curriculum/manager/list',
      notMatchedMenu: true,
      notBreadCrumb: true,
      auth: true
    }
  },

  {
    path: '/curriculum/manager',
    component: CourseLayoutTopMenu,
    children: [
      {
        path: '/curriculum/manager/info/:id',
        component: CourseEditInfo,
        name: 'curriculum.manager.info',
        meta: {
          title: '课程信息',
          auth: false,
          keepAlive: true,
          notBreadCrumb: true,
          menuPath: '/curriculum/manager/list',
          // breadList: [
          //   {
          //     menuName: '首页',
          //     menuUrl: '/guide'
          //   },
          //   {
          //     menuName: '校外学习'
          //   }
          // ]
        }
      }, {
        path: '/curriculum/manager/lesson-period/:id',
        component: CourseLessonPeriod,
        name: 'curriculum.manager.lesson-period',
        meta: {
          title: '课时信息',
          auth: false,
          keepAlive: true,
          notBreadCrumb: true,
          menuPath: '/curriculum/manager/list',
          // breadList: [
          //   {
          //     menuName: '首页',
          //     menuUrl: '/guide'
          //   },
          //   {
          //     menuName: '校外学习'
          //   }
          // ]
        }

      }, {
        path: '/curriculum/manager/trainee/:id',
        component: CourseTraineeIndex,
        name: 'curriculum.manager.trainee',
        meta: {
          title: '学员管理',
          auth: false,
          keepAlive: true,
          notBreadCrumb: true,
          menuPath: '/curriculum/manager/list',
          // breadList: [
          //   {
          //     menuName: '首页',
          //     menuUrl: '/guide'
          //   },
          //   {
          //     menuName: '校外学习'
          //   }
          // ]
        }

      }, {
        path: '/curriculum/manager/lesson-data/:id',
        component: CourseLessonDataIndex,
        name: 'curriculum.manager.lesson-data',
        meta: {
          title: '学习数据',
          auth: false,
          keepAlive: true,
          notBreadCrumb: true,
          menuPath: '/curriculum/manager/list',
          // breadList: [
          //   {
          //     menuName: '首页',
          //     menuUrl: '/guide'
          //   },
          //   {
          //     menuName: '校外学习'
          //   }
          // ]
        }

      }
    ]
  },

  {
    path: '/curriculum/manager/add-period/:courseId',
    name: 'curriculum.manager.add-period',
    component: CourseEditPeriod,
    meta: {
      title: '添加课时',
      notMatchedMenu: true,
      notBreadCrumb: true,
      auth: true,
      menuPath: '/curriculum/manager/list',
    }
  },

  {
    path: '/curriculum/manager/edit-period/:courseId/:id',
    name: 'curriculum.manager.edit-period',
    component: CourseEditPeriod,
    meta: {
      title: '编辑课时',
      notMatchedMenu: true,
      notBreadCrumb: true,
      auth: true,
      menuPath: '/curriculum/manager/list',
    }
  },

  {
    path: '/curriculum/manager/group-trainee/:courseId',
    name: 'curriculum.manager.group-trainee',
    component: CourseTraineeGroup,
    meta: {
      title: '分组管理',
      notMatchedMenu: true,
      notBreadCrumb: true,
      auth: true,
      menuPath: '/curriculum/manager/list',
    }
  },

  {
    path: '/curriculum/manager/examine/:courseId',
    name: 'curriculum.manager.examine',
    component: CourseTraineeExamine,
    meta: {
      title: '加入课程待审核',
      notMatchedMenu: true,
      notBreadCrumb: true,
      auth: true,
      menuPath: '/curriculum/manager/list',
    }
  },

  {
    path: '/curriculum/manager/import/:courseId',
    name: 'curriculum.manager.import',
    component: CourseTraineeImport,
    meta: {
      title: '导入学员',
      notMatchedMenu: true,
      notBreadCrumb: true,
      auth: true,
      menuPath: '/curriculum/manager/list',
    }
  },

  {
    path: '/curriculum/manager/data/record',
    name: 'curriculum.manager.record',
    component: CourseLessonDataRecord,
    meta: {
      title: '学习记录',
      notMatchedMenu: true,
      notBreadCrumb: true,
      auth: true,
      menuPath: '/curriculum/manager/list',
    }
  },

  {
    path: '/curriculum/manager/data/report/:exerciseId',
    name: 'curriculum.manager.report',
    component: CourseLessonDataReport,
    meta: {
      title: '学习报告',
      notMatchedMenu: true,
      notBreadCrumb: true,
      auth: true,
      isNotHeaderModule: true
    }
  },

  {
    path: '/curriculum/manager/data/course-stat/:courseId',
    name: 'curriculum.manager.course-stat',
    component: CourseLessonDataCourseStat,
    meta: {
      title: '课程学习数据',
      notMatchedMenu: true,
      notBreadCrumb: true,
      auth: true,
      menuPath: '/curriculum/manager/list',
    }
  },

  {
    path: '/curriculum/manager/data/lesson-stat/:courseId/:lessonId',
    name: 'curriculum.manager.lesson-statt',
    component: CourseLessonDataLessonStat,
    meta: {
      title: '课时学习数据',
      notMatchedMenu: true,
      notBreadCrumb: true,
      auth: true,
      menuPath: '/curriculum/manager/list',
    }
  },

]
